package ofpof.web.controller;

import ofpof.service.SecurityService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class FrontController {
	
	@Autowired
	private SecurityService securityService;
	

	@RequestMapping(value = "/front", method = RequestMethod.GET)
	public ModelAndView front() {
		ModelAndView mav = new ModelAndView("front");
		mav.addObject("user",securityService.getCurrentUser());
		return mav;
	}
}
